package com.yanghui.agent.agent.springboot.a.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "agent-spring-b",url = "http://localhost:8090")
public interface IntegralRemoteService {

    @RequestMapping(value = "/integral/query",method = RequestMethod.GET)
    Map<String,Object> query(@RequestParam(value = "userId") Long userId);

}
